(x_free_frame_resources) [USE_X_TOOLKIT]: Set
authorGerd Moellmann <gerd@gnu.org>
Thu, 5 Apr 2001 13:08:21 +0000 (13:08 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 5 Apr 2001 13:08:21 +0000 (13:08 +0000)
f->output_data.x->widget to null after destroying it.

src/xterm.c

index f4cce32b5fafd6f4c4f1fd3aca49e0412996fb69..15ba1e9c6dc322194950cc0b465b279398ceac28 100644 (file)
@@ -12821,7 +12821,10 @@ x_free_frame_resources (f)
       
 #ifdef USE_X_TOOLKIT
       if (f->output_data.x->widget)
-       XtDestroyWidget (f->output_data.x->widget);
+       {
+         XtDestroyWidget (f->output_data.x->widget);
+         f->output_data.x->widget = NULL;
+       }
       free_frame_menubar (f);
 #endif /* USE_X_TOOLKIT */